import Vue from 'vue'

export default {
  searchNoticeService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectnotice,config).then(r=>{
      callback(r.data);
    });
  },
  delNoticeService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delnotice,config).then(r=>{
      callback(r.data);
    });
  },
  delNoticeAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delnoticeall,config).then(r=>{
      callback(r.data);
    });
  },
  addNoticeService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.addnotice,config,{
      headers:{
        'Content-Type': 'multipart/form-data',
      }
    }).then(r=>{
      callback(r.data);
    });
  },
  editNoticeService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.editnotice,config,{
      headers:{
        'Content-Type': 'multipart/form-data',
      }
    }).then(r=>{
      callback(r.data);
    });
  },
  editNoticeStatusService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.editnoticestatus,config).then(r=>{
      callback(r.data);
    });
  },

}